<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="spf" uri="http://www.springframework.org/tags/form" %>
 
	
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"+ request.getServerName() + ":" + request.getServerPort()+ path + "/";
%>
 
<html>
<head>
<base href="<%=basePath%>">

<title>日志记录</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE11">
<meta http-equiv="X-UA-Compatible" content="IE=11">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width" /> 


<style type="text/css">
	.divcss5 {border: 1px solid #99CCFF}
	.td {border: solid #99CCFF;border-width: 0px 1px 1px 0px;padding: 10px 0px;}
	.table {border: solid #99CCFF;border-width: 2px 0px 0px 2px;}
</style>
<script type="text/javascript">
	function search() {
		$.post(
		   "logger/search",{
		   	    companyId : $("#companyId").val(),
				documentNo : $("#documentNo").val(),
				srvReqNo : $("#srvReqNo").val(),
				fileName : $("#fileName").val(),
				startDate : $("#startDate").val(),
				endDate : $("#endDate").val()
		   
		   },
	         function (msg){
	             $("#lisev").html(msg);
	        }
		);
	}
	
	function resets(){
		document.getElementById("companyId").value="";
		document.getElementById("documentNo").value="";
		document.getElementById("srvReqNo").value="";
		document.getElementById("fileName").value="";
		document.getElementById("startDate").value="";
		document.getElementById("endDate").value="";
	}
</script>

<script type="text/javascript" src="<%=basePath%>js/jquery-1.3.2.js"></script>
<script type="text/javascript" src="<%=basePath%>My97DatePicker/WdatePicker.js"></script>

</head>
<body><div style="margin-top: 20px; margin-left: 20px;margin-right: 20px;">
<form id="form1" name="form1" method="post" action="logger/search">  
			<table width="75%" border="0" align="center" cellpadding="0" cellspacing="0">
			<tr>
				<td width="10%" height="40">公司代码：</td>
				<td><input type="text" name="companyId" id="companyId" value="" style="text-transform: uppercase;">
				</td>
				<td width="10%" >凭证编号：</td>
				<td><input type="text" name="documentNo" id="documentNo" value="" >
				</td>
				<td width="10%" >请求编号：</td>
				<td><input type="text" name="srvReqNo" id="srvReqNo"  value="" ></td>
				<td  align="left"> <input type="submit" value="检索" > </td>
			</tr>
			<tr>
				<td  width="10%" height="40" >凭证文件：</td>
				<td><input type="text" name="fileName" id="fileName" value="" ></td>
				<td width="10%" >开始时间：</td>
				<td><input type="text" name="startDate" id="startDate"  value=""  class="Wdate" onclick="WdatePicker({skin:'whyGreen',maxDate:'%y-%M-%d'})" placeholder="请输入开始时间.....">
				</td>
				<td width="10%" >结束时间：</td>
				<td><input type="text" name="endDate" id="endDate" class="Wdate" value="" onclick="WdatePicker({skin:'whyGreen',maxDate:'%y-%M-%d'})"	placeholder="请输入结束时间......"></td>
			    <!-- onclick="resets()" -->
			     <td  align="left"><input type="reset"  value="取消"  > </td>
			</tr>
		</table>
</form>

<div id="lisev" class="divcss5" style="margin-left: 20px;margin-right: 20px;"> 
	<table width="100%"  class="table">
		<tr align="center" >
			<td class="td">序号</td>
			<td class="td">公司代码</td>
			<td class="td">会计凭证编号</td>
			<td class="td">服务请求编号</td>		
			<td class="td">更新状态</td>
            <td class="td">更新结果</td>
			<td class="td">操作对象</td>
			<td class="td">凭证文件</td>
			<td class="td">导入时间</td>
			
		</tr>
		<c:if test="${not empty fenye.dataList}">
			<c:forEach items="${fenye.dataList}" var="job" varStatus="tst">
				
					<tr align="center">
						<td class="td">${job.recordNo}</td>
						<td class="td">${job.companyId}</td>
						<td class="td">${job.documentNo}</td>
						<td class="td">${job.srvReqNo}</td>
						<td class="td">会计凭证编号更新成功</td>
                        <td class="td">${job.message}</td>
						<td class="td">${job.description}</td>
						<td class="td" >${job.fileName}</td>
						<td class="td"><fmt:formatDate value="${job.excuteTime}" pattern="yyyy-MM-dd HH:mm:ss" /></td>
					</tr>
		
			</c:forEach>
		</c:if>
	</table>
</div>
<div  style="text-align: center;" > ${fenye.viewButton}</div>
</div>
</body>
</html>
